<#-- 该界面为试用版本如果有错误处，请修改并记录修改说明 -->

<#-- basepath路径 子界面可以通过 $(base)引用 -->
<#assign base=request.contextPath />  
<#-- meta 模块 -->
<#--定义引入的meta-->
<#macro meta_import> 
</#macro> 
<#--定义引入的script-->
<#macro script_import>
	<!-- BEGIN PAGE LEVEL SCRIPTS --> 
	
	<script src="${base}/resources/ma/js/app.js" type="text/javascript"></script>  
	
	<!-- END PAGE LEVEL SCRIPTS --> 
</#macro> 
<#-- layout 模块  active_id 点击中的菜单信息 child_active_id 点击中的子菜单信息-->
<#macro layout active_id="" child_active_id="">
<!DOCTYPE html>

<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->

<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->

<!--[if !IE]><!--> <html lang="en" class="no-js"> <!--<![endif]--> 
<!-- BEGIN HEAD -->
<#--包含spring.ftl 文件可以利用其获取语言信息--> 
<#import "/spring.ftl" as spring /> 
<head>  
	<title><@spring.message "mindex_title"/></title>
	<#include "/ma/common/meta.ftl">  
	<@meta_import/>
	<#include "/ma/common/common-css.ftl">  
	<@css/>
</head>

<!-- END HEAD -->

<!-- BEGIN BODY -->

<body class="page-header-fixed">

	<!-- BEGIN HEADER --> 
    <#include "/ma/common/navbar-top.ftl"> 
	<!-- BEGIN CONTAINER -->

	<div class="page-container">

		<!-- BEGIN SIDEBAR -->  
	    <#include "/ma/common/navbar-left.ftl"> 
		<!-- END SIDEBAR -->

		<!-- BEGIN PAGE --> 
		<div class="page-content">

			<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->

			<div id="portlet-config" class="modal hide">

				<div class="modal-header">

					<button data-dismiss="modal" class="close" type="button"></button>

					<h3>Widget Settings</h3>

				</div>

				<div class="modal-body">

					Widget settings form goes here

				</div>

			</div>

			<!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->

			<!-- BEGIN PAGE CONTAINER-->
			<!-- 详细内容-->
            <#nested> 
			<!-- END PAGE CONTAINER-->    

		</div>

		<!-- END PAGE -->

	</div>

	<!-- END CONTAINER -->

	<!-- BEGIN FOOTER --> 
	<#include "/ma/common/footer.ftl"> 
	<!-- END FOOTER -->  
	<!-- END COPYRIGHT --> 
	
	
	<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) --> 
	<!-- BEGIN CORE PLUGINS --> 
	<script src="${base}/resources/ma/js/jquery-1.10.1.min.js" type="text/javascript"></script> 
	<script src="${base}/resources/ma/js/jquery-migrate-1.2.1.min.js" type="text/javascript"></script> 
	<!-- IMPORTANT! Load jquery-ui-1.10.1.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip --> 
	<script src="${base}/resources/ma/js/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>     
	<script src="${base}/resources/ma/js/bootstrap.min.js" type="text/javascript"></script> 
	<!--[if lt IE 9]> 
	<script src="${base}/resources/ma/js/excanvas.min.js"></script> 
	<script src="${base}/resources/ma/js/respond.min.js"></script>   
	<![endif]-->    
	<script src="${base}/resources/ma/js/jquery.slimscroll.min.js" type="text/javascript"></script> 
	<script src="${base}/resources/ma/js/jquery.blockui.min.js" type="text/javascript"></script>  
	<script src="${base}/resources/ma/js/jquery.cookie.min.js" type="text/javascript"></script> 
	<script src="${base}/resources/ma/js/jquery.uniform.min.js" type="text/javascript" ></script> 
	<!-- END CORE PLUGINS -->  

	 <#--加载主界面要导入的script--> 
    <@script_import />
	<!--加载子界面script-->
	<@script /> 
	<script>  
		jQuery(document).ready(function() {   
		   App.init();
		   <@script_ready />
		   <!--显示菜单选择中信息-->
           initTree(); 
		});
		
		function initTree(){
			<#if active_id!="" && active_id??> 
				var pActive = $("li.treeview[name='${active_id}']");
				<!--alert(pActive.html());-->
				var cvalue = pActive.attr('class');
				if(cvalue.indexOf('start')>=0) 
					pActive.attr("class","start active");
				else
					pActive.attr("class","active");
			<#if child_active_id!="" && child_active_id??>
			  	pActive.find("#${child_active_id}").attr("class","active");
			</#if>
			</#if>
		} 
	</script> 
	<!-- END JAVASCRIPTS -->

</body> 
<!-- END BODY --> 
</html> 
</#macro>